import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        Random ran = new Random();
        int gu = ran.nextInt(101);
        while(true){
            System.out.println("请输入猜的数字》》");
            int num = scan.nextInt();
            if(num > gu){
                System.out.println("猜大了");
            }
            else if(num < gu){
                System.out.println("猜小了");
            }else{
                System.out.println("猜对了");
                break;
            }
        }
    }
}